<%--
  Created by IntelliJ IDEA.
  User: 86166
  Date: 2024/08/17
  Time: 20:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>融资管理系统</title>
        <%
        String base = request.getContextPath() + "/";
        String url = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + base;
    %>
    <base href="<%=url%>">
    <script type="text/javascript" src="js/jquery-1.8.3.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            var bid = $("[name='hitxt']").val();
            $.get("systerm/querydetail",{"no":bid},function (financeList) {
                console.log(financeList);
                JSON.stringify(financeList);
                //融资凭证编号
                $("#no1").empty();
                    $("<tr>"+
                        "<td>"+financeList.no+"</td>"+
                        "</tr>").appendTo("[id='no1']");
                //处理状态
                if (financeList.status!="A"){
                    $("#status2").empty();
                    $("<tr>"+
                        "<td>"+"失败"+"<span  style='font-size: 12px;color: #999;margin-left: 5px;'>未放款 </span>"+"</td>"+"</td>"+
                        "</tr>").appendTo("[id='status2']");
                }
                //金融机构
                $("#instituty_id1").empty();
                $("<tr>"+
                    "<td>"+financeList.name+"</td>"+
                    "</tr>").appendTo("[id='instituty_id1']");
                //付息方式
                $("#payment_interest_type1").empty();
                $("<tr>"+
                    "<td>"+financeList.payment_interest_type+"</td>"+
                    "</tr>").appendTo("[id='payment_interest_type1']");
                //申请日期
                $("#create_time1").empty();
                $("<tr>"+
                    "<td>"+financeList.create_time+"</td>"+
                    "</tr>").appendTo("[id='create_time1']");

                //计算天数间隔
                var now=new Date();
                var eDate = Date.parse(financeList.expiry_time)
                var days = Math.ceil((eDate - now) / (24 * 60 * 60 * 1000))
                //预计到账时间
                $("#receipt_day").empty();
                $("<tr>"+
                    "<td>"+financeList.expiry_time+"<span style='font-size: 12px;color: #999'>剩余"+days+"天</span>"+ "</td>" +
                    "</tr>").appendTo("[id='receipt_day']");
                //融资金额
                $("#amount1").empty();
                $("<tr>"+
                    "<td>"+financeList.amount+"</td>"+
                    "</tr>").appendTo("[id='amount1']");
                //预计到账金额
                $("#receipt_amount1").empty();
                $("<tr>"+
                    "<td>"+financeList.receipt_amount+"</td>"+
                    "</tr>").appendTo("[id='receipt_amount1']");
            });
        });



    </script>
    <meta name="description" content="这是一个 index 页面">
    <meta name="keywords" content="index">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <meta name="apple-mobile-web-app-title" content="Amaze UI"/>
    <link rel="stylesheet" href="assets/css/amazeui.min.css"/>
    <link rel="stylesheet" href="assets/css/admin.css">
    <link rel="stylesheet" href="assets/css/app.css">
</head>
<body data-type="generalComponents">
<input type="hidden" name="hitxt" value="<%=request.getParameter("id")%>"/>
<input type="hidden" name="hitxt1" value="<%

%>"/>
<header class="am-topbar am-topbar-inverse admin-header">
    <div class="am-collapse am-topbar-collapse" id="topbar-collapse">
        <ul class="am-nav am-nav-pills am-topbar-nav am-topbar-right admin-header-list tpl-header-list">
            <li class="am-dropdown" data-am-dropdown data-am-dropdown-toggle>
                <a class="am-dropdown-toggle tpl-header-list-link" href="javascript:;">
                    <span class="tpl-header-list-user-nick">禁言小张</span><span class="tpl-header-list-user-ico"> <img
                        src="assets/img/user01.png"></span>
                </a>
                <ul class="am-dropdown-content">
                    <li><a href="login.jsp"><span class="am-icon-power-off"></span> 退出</a></li>
                </ul>
            </li>
        </ul>
    </div>
</header>
<div class="tpl-page-container tpl-page-header-fixed">
    <div class="tpl-left-nav tpl-left-nav-hover">
        <div class="tpl-left-nav-list">
            <ul class="tpl-left-nav-menu">
                <li class="tpl-left-nav-item">
                    <a href="javascript:;" class="nav-link tpl-left-nav-link-list active">
                        <i class="am-icon-table"></i>
                        <span>凭证管理</span>
                        <i class="am-icon-angle-right tpl-left-nav-more-ico am-fr am-margin-right tpl-left-nav-more-ico-rotate"></i>
                    </a>
                    <ul class="tpl-left-nav-sub-menu" style="display:block">
                        <li>
                            <a href="finance-list.jsp" class="active">
                                <i class="am-icon-angle-right"></i>
                                <span>融资列表</span>
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="tpl-left-nav-item">
                    <a href="javascript:;" class="nav-link tpl-left-nav-link-list">
                        <i class="am-icon-wpforms"></i>
                        <span>我的凭证</span>
                        <i class="am-icon-angle-right tpl-left-nav-more-ico am-fr am-margin-right"></i>
                    </a>
                    <ul class="tpl-left-nav-sub-menu">
                        <li>
                            <a href="my-ticket-list.jsp">
                                <i class="am-icon-angle-right"></i>
                                <span>我的凭证列表</span>
                            </a>
                        </li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
    <div class="tpl-content-wrapper">
        <div class="tpl-content-page-title">
            融资详情
        </div>
        <ol class="am-breadcrumb">
            <li class="am-active"><a style="color: #999999;">凭证管理</a></li>
            <li class="am-active">融资详情</li>
        </ol>
        <div class="tpl-portlet-components">
            <div class="portlet-title">
                <div class="caption font-green bold">
                    融资信息
                </div>
                <div class="tpl-portlet-input tpl-fz-ml">
                    <div class="portlet-input input-small input-inline">
                        <div class="input-icon right">
                        </div>
                    </div>
                </div>
            </div>
            <div class="tpl-block ">
                <div class="am-g tpl-amazeui-form">
                    <div class="am-u-sm-12 am-u-md-6">
                        <form class="am-form am-form-horizontal">
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label">凭证编号</label>
                                <div id="no1" class="am-u-sm-9" style="margin-top: 4px;font-size: 16px;">
                                    N20221001000001
                                </div>
                            </div>
                        </form>
                    </div>
                    <div class="am-u-sm-12 am-u-md-6">
                        <form class="am-form am-form-horizontal">
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label">处理状态</label>
                                <div id="status2" class="am-u-sm-9" style="margin-top: 4px;font-size: 16px;">
                                    成功<span id="status1" style="font-size: 12px;color: #999;margin-left: 5px;"> 已放款</span>
                                </div>
                            </div>
                        </form>
                    </div>
                    <div class="am-u-sm-12 am-u-md-6">
                        <form class="am-form am-form-horizontal">
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label">金融机构</label>
                                <div id="instituty_id1" class="am-u-sm-9" style="margin-top: 4px;font-size: 16px;">
                                    中国工商银行
                                </div>
                            </div>
                        </form>
                    </div>
                    <div class="am-u-sm-12 am-u-md-6">
                        <form class="am-form am-form-horizontal">
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label">付息方式</label>
                                <div id="payment_interest_type1" class="am-u-sm-9" style="margin-top: 4px;font-size: 16px;">
                                    融资企业付息
                                </div>
                            </div>
                        </form>
                    </div>
                    <div class="am-u-sm-12 am-u-md-6">
                        <form class="am-form am-form-horizontal">
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label">申请日期</label>
                                <div id="create_time1" class="am-u-sm-9" style="margin-top: 4px;font-size: 16px;">
                                    2021-03-28
                                </div>
                            </div>
                        </form>
                    </div>
                    <div class="am-u-sm-12 am-u-md-6">
                        <form class="am-form am-form-horizontal">
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label">预计到账时间</label>
                                <div id="receipt_day" class="am-u-sm-9" style="margin-top: 4px;font-size: 16px;">
                                    2021-04-28 <span style="font-size: 12px;color: #999">剩余 10 天</span>
                                </div>
                            </div>
                        </form>
                    </div>
                    <div class="am-u-sm-12 am-u-md-6">
                        <form class="am-form am-form-horizontal">
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label">融资金额</label>
                                <div id="amount1" class="am-u-sm-9" style="font-size: 19px;color: red;font-weight: 500;">
                                    10,000,000.00元
                                </div>
                                <div style="font-size: 12px;color: #999">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;含融资利息：300,000元（3%利率）
                                </div>
                            </div>
                        </form>
                    </div>
                    <div class="am-u-sm-12 am-u-md-6">
                        <form class="am-form am-form-horizontal">
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label">预计到账</label>
                                <div id="receipt_amount1" class="am-u-sm-9" style="font-size: 19px;color: red;font-weight: 500;">
                                    9,600,000.00元
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
                <div style="text-align: center;margin-top:40px">
                    <a class="am-btn am-btn-default" href="finance-list.jsp">返 回</a>
                </div>
            </div>
        </div>
    </div>
</div>

<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/amazeui.min.js"></script>
<script src="assets/js/app.js"></script>
<script>

</script>
</body>

</html>
